package com.file.manage.controller;


import com.file.manage.domain.data.OperationLogsVO;
import com.file.manage.domain.param.OperationLogsQueryParam;
import com.file.manage.domain.service.OperationLogsService;
import com.file.manage.infrastructure.base.CommonResult;
import com.file.manage.infrastructure.base.Pager;
import com.file.manage.infrastructure.base.dto.query.PageQuery;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @since 2025-05-22
 */
@RestController
@RequestMapping("logs")
@Tag(name = "操作日志管理")
public class OperationLogsController {
    @Resource
    private OperationLogsService operationLogsService;


    @Operation(summary = "分页查询")
    @RequestMapping(value = "/pageQuery", method = RequestMethod.POST)
    public CommonResult<Pager<OperationLogsVO>> pageQuery(@RequestBody PageQuery<OperationLogsQueryParam> pageQuery) {
        return CommonResult.success(operationLogsService.pageQuery(pageQuery));
    }

}
